package com.eedi.framework.oauth2.controller.org;

//@Tag(name = "经营界面 - OAuth2.0 令牌")
//@RestController
//@RequestMapping("/oauth2-token")
public class OrgOAuth2TokenController {

//    @Resource
//    private OAuth2TokenService oauth2TokenService;
//    @Resource
//    private AdminAuthService authService;

//    @GetMapping("/page")
//    @Operation(summary = "获得访问令牌分页", description = "只返回有效期内的")
//    @PreAuthorize("@ss.hasPermission('sys:oauth2-token:page')")
//    public CommonResult<PageResult<OAuth2AccessTokenRespVO>> getAccessTokenPage(@Valid OAuth2AccessTokenPageReqVO reqVO) {
//        PageResult<OAuth2AccessTokenDO> pageResult = oauth2TokenService.getAccessTokenPage(reqVO);
//        return success(BeanUtils.toBean(pageResult, OAuth2AccessTokenRespVO.class));
//    }
//
//    @DeleteMapping("/delete")
//    @Operation(summary = "删除访问令牌")
//    @Parameter(name = "accessToken", description = "访问令牌", required = true, example = "tudou")
//    @PreAuthorize("@ss.hasPermission('sys:oauth2-token:delete')")
//    public CommonResult<Boolean> deleteAccessToken(@RequestParam("accessToken") String accessToken) {
//        authService.logout(accessToken, LoginLogTypeEnum.LOGOUT_DELETE.getType());
//        return success(true);
//    }

}
